<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>.: CIPAGANTI GROUP :: Aplikasi Kasir Travel :.</title>
		<link rel="shortcut n" href="<?php echo IMAGES ?>logo.ico" type="images/x-n" />
		<link href="<?php echo IMAGES ?>favicon.ico" type="image/x-icon" rel="icon" />
		<link href="<?php echo IMAGES ?>favicon.ico" type="image/x-icon" rel="shortcut icon" />
		<style type="text/css">
			body {
				margin: 0 auto;
				width: 950px;
				font-family: Arial, "Trebuchet MS", Geneva, Tahoma, Verdana, sans-serif;
				font-size: 12px;
				font-weight: normal;
				background:#900808 url(<?php echo IMAGES ?>bg.png) top center no-repeat;
				/*border:solid 1px red;*/
			}
			#wrapper-login {
				margin: 0 auto;
				margin-top:0px;
				min-width: 950px;
				width:950px;	
				/*border:solid 0px red;*/		
			}
			#login {
				width: 439px;
				margin: 0 auto;
				height:439px;
				background:url(<?php echo IMAGES ?>cangkang.png) no-repeat transparent;
				/*border:solid 1px red;*/
			}
			#login-container {
				margin:53px;
				margin-top:110px;
				padding-top:180px;
				height:390px;
				/*border:solid 1px red;*/
			}

			#login-container .error{
				width: 100%;
				text-align: center;
				color:red;
				height: 10px;
				margin-bottom: 5px;
				margin-top:0px;
				font-family:: Arial, Helvetica, sans-serif;
				font-size:19px;
				font-weight:bold;
				text-shadow: 0px 1px 1px #f0f0f0;
			}
			#footer {
				height:60px;
				position:relative;
			}
			#copy {
				width: 950px;
				margin: 0 auto;
				color:#FC0;
				font-family: Helvetica, Arial, sans-serif;
				font-size: 12px;
				font-weight: normal;
				line-height:12px;
				text-align:center;
				text-shadow: 0px 1px 1px #000;

			}
			#login-isi .title {
				color:#ed1c24;
				height: 10px;
				margin: 15px;
				margin-bottom: 5px;
				margin-top:10px;
				font-family:: Arial, Helvetica, sans-serif;
				font-size:15px;
				font-weight:normal;
				text-shadow: 0px 1px 1px #f0f0f0;
			}
			#login-isi {
				height:270px;
				margin-top:0px;
				margin-left:22px;
			}
			#login-isi .form {
				height: 53px;
			}
			#login-isi .button {
				margin-top:0px;
				margin-left:-20px;
				width: 332px;
				text-align:center;
			}
			form.email_form { 
				width: 450px;  
				text-align: left; 
			}
			input.emailfield { 
				width: 332px; 
				height: 31px;
				font-size: 14px;
				padding: 0px 10px;
				padding-top:5px;
				padding-bottom:5px;
				background: url('<?php echo IMAGES ?>boxisian.png') no-repeat scroll 0% 0% transparent; 
				border: medium none; 
				margin-top: 7px; 
				margin-left: 7px; 
				float: left; 
			}
			input.emailfield:focus { 
				outline: none;
			}
			.defaultemail { 
				font-family: georgia; 
				font-size: 14px; 
				color: rgb(102, 102, 102); 
				font-style: italic; 
			}
			input.notify { 
				background: url('<?php echo IMAGES ?>button_login.png') no-repeat scroll 0% 0% transparent; 
				width: 183px; 
				height: 61px; 
				border: medium none; 
				text-indent: -9999px; 
				clear: both; 
				margin-top: 7px; 
				margin-left: 4px;
			}
			input.notify:hover { 
				background: transparent url('<?php echo IMAGES ?>button_login.png') 0px -61px no-repeat; 
			}
			input.notify:active { 
				background: transparent url('<?php echo IMAGES ?>button_login.png') 0px -122px no-repeat; 
			}
			input[type="submit"]::-moz-focus-inner, input[type="button"]::-moz-focus-inner {   
				border : 0px;
			}

		</style>

	</head>
	<body>
		<div id="wrapper-login">
			<div id="login">
				<div id="login-container">
					<?php
					$error = $this->session->flashdata('error');
					if(!empty ($error)){
						if($this->session->flashdata('error')==1){
							echo '<div class="error">Login Error</div>';
						}
						if($this->session->flashdata('error')==2){
							echo '<div class="error">Belum diset kota untuk user ini</div>';
						}
					}
					?>
					<form class="email_form" method="post" action="<?php echo AUTH?>check_login">
					<div id="login-isi">
					<div class="title">Nama Pengguna</div>
					<div class="form"><input type="text" id="emailfield" class="emailfield defaultemail" name="username"/></div>
					<div class="title">Kata Sandi</div>
					<div class="form"><input type="password" id="emailfield" class="emailfield defaultemail" name="password" /></div>
					<div class="button"><input id="submit" value="Masuk" class="notify" type="submit"/></div>
					</div>
					</form>
					</div>
					</div>
					
					<div id="footer">
						<div id="copy">
							Copyright &copy; 2012 - Cipaganti Group 
						</div>
					</div>
				</div>
				</body>
				</html>